<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkMisc</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="AbstractObjects.html" title="抽象基类">
<link rel="prev" href="gtk3-GtkMenuShell.html" title="GtkMenuShell">
<link rel="next" href="gtk3-GtkRange.html" title="GtkRange">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkMenuShell.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="AbstractObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkRange.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkMisc.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkMisc.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkMisc"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkMisc.top_of_page"></a>GtkMisc</span></h2>
<p>GtkMisc</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkMisc.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc">GtkMisc</a>;
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkMisc.html#gtk-misc-set-alignment" title="gtk_misc_set_alignment ()">gtk_misc_set_alignment</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> yalign</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkMisc.html#gtk-misc-set-padding" title="gtk_misc_set_padding ()">gtk_misc_set_padding</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpad</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypad</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkMisc.html#gtk-misc-get-alignment" title="gtk_misc_get_alignment ()">gtk_misc_get_alignment</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> *xalign</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> *yalign</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkMisc.html#gtk-misc-get-padding" title="gtk_misc_get_padding ()">gtk_misc_get_padding</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *xpad</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *ypad</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkMisc.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkMisc.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkMisc"></a><h3>struct GtkMisc</h3>
<pre class="programlisting">struct GtkMisc {
  GtkWidget widget;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-misc-set-alignment"></a><h3>gtk_misc_set_alignment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_misc_set_alignment              (<em class="parameter"><code><a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> yalign</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-misc-set-padding"></a><h3>gtk_misc_set_padding ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_misc_set_padding                (<em class="parameter"><code><a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpad</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypad</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-misc-get-alignment"></a><h3>gtk_misc_get_alignment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_misc_get_alignment              (<em class="parameter"><code><a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> *xalign</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> *yalign</code></em>);</pre>
<p>
Gets the X and Y alignment of the widget within its allocation. 
See <a class="link" href="gtk3-GtkMisc.html#gtk-misc-set-alignment" title="gtk_misc_set_alignment ()"><code class="function">gtk_misc_set_alignment()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>misc</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
<td>location to store X alignment of <em class="parameter"><code>misc</code></em>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td>
<td>location to store Y alignment of <em class="parameter"><code>misc</code></em>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-misc-get-padding"></a><h3>gtk_misc_get_padding ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_misc_get_padding                (<em class="parameter"><code><a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *xpad</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *ypad</code></em>);</pre>
<p>
Gets the padding in the X and Y directions of the widget. 
See <a class="link" href="gtk3-GtkMisc.html#gtk-misc-set-padding" title="gtk_misc_set_padding ()"><code class="function">gtk_misc_set_padding()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>misc</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkMisc.html#GtkMisc" title="struct GtkMisc"><span class="type">GtkMisc</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xpad</code></em> :</span></p></td>
<td>location to store padding in the X
direction, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ypad</code></em> :</span></p></td>
<td>location to store padding in the Y
direction, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>